#include "global.h"

#include "arguments.h"
#include "data.h"
#include "dialog.h"
#include "language.h"
#include "region.h"
#include "title.h"
#include "ui.h"
#include "ui_city.h"
#include "ui_region.h"

int main(int argc, char** argv)
{
	// initialize language
	language_init();

	// parse arguments
	arguments(argc, argv);

	// initialize everything
	data_init();
	ui_init();

	city = load_city(load_region("Vale dos Sinos"), 7);
	printf("%d\n", show_ui_city());

/*
	// load game title
	Region *region;
title:	region = show_title();

	// load region chooser
	if(!region)
		ui_error(_("Invalid region."));
	city = show_ui_region(region);
	if(!city)
		goto title;

	// load city user interface
	if(show_ui_city() == 0)
		goto title;
*/
	atexit(SDL_Quit);
	return 0;
}
